﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcurementInfoStatistics.aspx.cs"
    Inherits="TCS.Web.Admin.BusinessManage.ProcurementInfoStatistics" %>
<%@ Register Src="~/Admin/uc/AdminMapPath.ascx" TagName="MapPath" TagPrefix="uc1" %>
<%@ Register Src="../../Controls/checkright.ascx" TagName="checkright" TagPrefix="uc1" %>
<%@ Register TagPrefix="cc1" Namespace="LtpPageControl" Assembly="LtpPageControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>

    <script type="text/javascript" language="JavaScript" src="../../js/CheckBox.js"></script>
<script type="text/javascript" language="JavaScript" src="../../js/Calendar3.js"></script>
    <link href="../Style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" runat="server">
    <div>
        <center>
         <uc1:MapPath ID="MapPath1" ParentName="采购信息监管" ThisName="采购信息统计"  runat="server"></uc1:MapPath>
            <table cellspacing="0" cellpadding="5" width="97%" align="center" border="0">
                <tr>
                    <td valign="middle" height="25">
                        &nbsp;&nbsp;&nbsp; 快速查询： 购入日期：<asp:TextBox ID="txtBugDateBegin" onclick="setday(this)"
                            runat="server" Width="75px"></asp:TextBox>
                        至
                        <asp:TextBox ID="txtBugDateEnd" onclick="setday(this)" runat="server" Width="75px"></asp:TextBox>
                        <asp:TextBox ID="txtKey" runat="server" ToolTip="关键字" Text="请输入关键字"></asp:TextBox>&nbsp;
                        <asp:DropDownList ID="DropField" runat="server" Width="150px">
                            <asp:ListItem Value="1">企业名称</asp:ListItem>
                            <asp:ListItem Value="2">商品名称</asp:ListItem>
                            <asp:ListItem Value="3">通用名称</asp:ListItem>
                        </asp:DropDownList>
                        <asp:ImageButton ID="btn_Search" runat="server" ImageUrl="../images/button_search.GIF"
                            ToolTip="快速检索广告" OnClick="btn_Search_Click"></asp:ImageButton>
                    </td>
                </tr>
            </table>
            <table cellspacing="0" cellpadding="5" width="97%" border="0">
                <tr>
                    <td align="left">
                        ○页次：<asp:Label ID="lblCurrentPage" runat="server" ForeColor="#e78a29"></asp:Label>页/<asp:Label
                            ID="lblPageCount" runat="server"></asp:Label>页，共<asp:Label ID="lblRowsCount" runat="server"
                                ForeColor="#e78a29"></asp:Label>条记录
                    </td>
                    <td align="right">
                        [<asp:LinkButton ID="btnFirst" runat="server" OnCommand="NavigateToPage" CommandArgument="First"
                            CommandName="Pager" Text="首 页">首 页</asp:LinkButton>] [<asp:LinkButton ID="btnPrev"
                                runat="server" OnCommand="NavigateToPage" CommandArgument="Prev" CommandName="Pager"
                                Text="上一页">上一页</asp:LinkButton>] [<asp:LinkButton ID="btnNext" runat="server" OnCommand="NavigateToPage"
                                    CommandArgument="Next" CommandName="Pager" Text="下一页">下一页</asp:LinkButton>]
                        [<asp:LinkButton ID="btnLast" runat="server" OnCommand="NavigateToPage" CommandArgument="Last"
                            CommandName="Pager" Text="尾 页">尾 页</asp:LinkButton>]
                    </td>
                </tr>
            </table>
            <table cellspacing="0" cellpadding="5" width="98%" border="0">
                <tr>
                    <td bgcolor='<%=Application[Session["Style"].ToString()+"xtable_bgcolor"]%>'>
                        <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" Width="100%"
                            AllowPaging="True" AllowSorting="True" OnRowCreated="gridView_RowCreated" OnPageIndexChanging="gridView_PageIndexChanging"
                            OnRowDataBound="gridView_RowDataBound" CellPadding="5" BorderWidth="1px" PageSize="15"
                            OnRowDeleting="gridView_RowDeleting" OnSorting="gridView_Sorting" >
                            <Columns>
                              <asp:TemplateField HeaderText="序号">
                                    <ItemTemplate>
                                        <%#GetNum(Container.DataItemIndex.ToString()) %>
                                    </ItemTemplate>
                                </asp:TemplateField> 
                                <asp:TemplateField HeaderText="企业名称">
                                    <ItemTemplate>
                                        <%#Eval("enname")%>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" Width="260px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="通用名称">
                                    <ItemTemplate>
                                        <%#Eval("comname")%>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left"  />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="药品名称">
                                    <ItemTemplate>
                                        <%#Eval("productname")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="c" HeaderText="购入数量" Visible="true" />
                            </Columns>
                            <PagerSettings Mode="NumericFirstLast" />
                            <PagerStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </asp:GridView>
                        <asp:Label ID="Label1" runat="server" Visible="False" ForeColor="Red">没有数据！！</asp:Label>
                        
                    </td>
                </tr>
            </table>
        </center>
    </div>
    <uc1:checkright ID="Checkright1" runat="server"></uc1:checkright>
    </form>
</body>
</html>
